<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			var str = 'welcome';
			for(var i = 0; i < str.length; i++){
				console.log(str[i]);
			}
			console.log(i);		//7
		</script>
	</body>
</html>
